package fy.hr.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class positivelbean {
	private String code;// 工号
	private String name;// 姓名
	private String dept;// 部门
	private String job;// 岗位
	private String birthdate;// 出生日期
	private String nationality;// 民族
	private String nativeplace;// 籍贯
	private String sex;// 性别
	private String indutydate;// 入职日期

	public String getIndutydate() {
		return indutydate;
	}

	public void setIndutydate(String indutydate) {
		this.indutydate = indutydate;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(String birthdate) {
		this.birthdate = birthdate;
	}

	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public String getNativeplace() {
		return nativeplace;
	}

	public void setNativeplace(String nativeplace) {
		this.nativeplace = nativeplace;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getID() {
		return new StringBuilder().append("code").append(code).toString();
	}

	public JSONObject getJSONObject() throws JSONException {
		JSONObject jo = new JSONObject();

		jo.put("code", code);
		jo.put("name", name);
		jo.put("dept", dept);
		jo.put("job", job);
		jo.put("birthdate", birthdate);
		jo.put("nationality", nationality);
		jo.put("nativeplace", nativeplace);
		jo.put("sex", sex);
		jo.put("indutydate", indutydate);

		return jo;
	}
}
